| Conditions | 2 |
| Paths | 1 |
| Total Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* globals window, self */ |
||
| 3 | var pbkdf2Sha512 = function(pw, salt, iterations, keySizeBytes) { |
||
| 4 | // assumes asmCrypto is made available |
||
| 5 | var asmCrypto = typeof window !== "undefined" ? window.asmCrypto : self.asmCrypto; |
||
| 6 | |||
| 7 | return new Buffer(new asmCrypto.PBKDF2_HMAC_SHA512.bytes(pw, salt, iterations, keySizeBytes).buffer); |
||
|
|
|||
| 8 | }; |
||
| 9 | |||
| 13 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.